Sequential dynamical system